package com.carrie.service.impl;

import com.carrie.mapper.UserMapper;
import com.carrie.model.entity.UserDetails;
import com.carrie.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;

/**
 * @author XuHaiLong
 * @since 2025/4/16 01:48
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private PasswordEncoder passwordEncoder;
    @Autowired
    UserMapper userMapper;
    @Override
    public UserDetails getUserDetailsByLogin(String username) {
        return userMapper.getUserDetailsByLogin(username);
    }
}
